import QtQuick 2.0

Rectangle {
    width: 100
    height: 100
    radius: 5
    opacity: 0.6
    ListView{
        anchors.fill: parent
        anchors.margins: 5
        model: (typeof (actorsModel) !== "undefined" ? actorsModel : null)
        delegate: rowDelegateComponent
    }
    Component{
        id:rowDelegateComponent
        Row{
            height: col1.height
            spacing: 5
            Text{
                id:col1
                text: (typeof (nameRole) !== "undefined" ? nameRole : "empty")
                font.pointSize: 14
                font.italic: true
                width: 60
            }
            Text{
                id:col2
                text: (typeof (score) !== "undefined" ? score : "-")
                font.pointSize: 14
                width: 25
            }
        }
    }
}
